package com.zttek.photosShareProject.modules.service.share;

import com.zttek.photosShareProject.common.json.ShareVO;
import com.zttek.photosShareProject.common.json.UserVO;
import com.zttek.photosShareProject.common.solr.ShareDoc;
import com.zttek.photosShareProject.common.solr.UserDoc;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Y
 * Date: 2017-08-18
 * Time: 14:48
 */
public interface ISearchService {

    /**
     * 按名搜用户
     * @param start *
     * @param rows *
     * @param name *
     * @return *
     */
    public List<UserDoc> searchForUser(Integer start, Integer rows, String name) throws Exception;

    List<UserVO> userDoc2VO(List<UserDoc> docs, Long userId) throws Exception;

    /**
     * 按内容搜分享
     * @param start *
     * @param rows *
     * @param description *
     * @return *
     */
    public List<ShareDoc> searchForShare(Integer start, Integer rows, String description) throws Exception;

    List<ShareVO> shareDoc2VO(List<ShareDoc> docs, Long userId) throws Exception;
}
